package com.flurry.sdk;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

public class iq {
    private static final String m = iq.class.getName();
    public int a;
    public long b;
    public long c;
    public boolean d;
    public int e;
    public ir f;
    public String g;
    public int h;
    public long i;
    public boolean j;
    public long k = 0;
    public ip l;

    public iq(ip ipVar, long j2, long j3, int i2) {
        this.l = ipVar;
        this.b = j2;
        this.c = j3;
        this.a = i2;
        this.e = 0;
        this.f = ir.PENDING_COMPLETION;
    }

    public final void a() {
        this.l.a.add(this);
        if (this.d) {
            this.l.l = true;
        }
    }

    public static class a implements lg<iq> {
        public final /* synthetic */ void a(OutputStream outputStream, Object obj) throws IOException {
            iq iqVar = (iq) obj;
            if (outputStream != null && iqVar != null) {
                AnonymousClass1 r0 = new DataOutputStream(outputStream) {
                    public final void close() {
                    }
                };
                r0.writeInt(iqVar.a);
                r0.writeLong(iqVar.b);
                r0.writeLong(iqVar.c);
                r0.writeBoolean(iqVar.d);
                r0.writeInt(iqVar.e);
                r0.writeInt(iqVar.f.e);
                if (iqVar.g != null) {
                    r0.writeUTF(iqVar.g);
                } else {
                    r0.writeUTF("");
                }
                r0.writeInt(iqVar.h);
                r0.writeLong(iqVar.i);
                r0.writeBoolean(iqVar.j);
                r0.writeLong(iqVar.k);
                r0.flush();
            }
        }

        public final /* synthetic */ Object a(InputStream inputStream) throws IOException {
            if (inputStream == null) {
                return null;
            }
            AnonymousClass2 r2 = new DataInputStream(inputStream) {
                public final void close() {
                }
            };
            int readInt = r2.readInt();
            long readLong = r2.readLong();
            long readLong2 = r2.readLong();
            boolean readBoolean = r2.readBoolean();
            int readInt2 = r2.readInt();
            ir a = ir.a(r2.readInt());
            String readUTF = r2.readUTF();
            int readInt3 = r2.readInt();
            long readLong3 = r2.readLong();
            boolean readBoolean2 = r2.readBoolean();
            long readLong4 = r2.readLong();
            iq iqVar = new iq((ip) null, readLong, readLong2, readInt);
            iqVar.d = readBoolean;
            iqVar.e = readInt2;
            iqVar.f = a;
            iqVar.g = readUTF;
            iqVar.h = readInt3;
            iqVar.i = readLong3;
            iqVar.j = readBoolean2;
            iqVar.k = readLong4;
            return iqVar;
        }
    }
}
